package com.atguigu;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;

public class student {

    @ExcelProperty("学生id")
    @ColumnWidth(15)
    private Integer sid;

    @ExcelProperty("学生姓名")
    @ColumnWidth(15)
    private String sname;

    @ExcelProperty("学生年龄")
    @ColumnWidth(15)
    private  int age;

    @ExcelProperty("学生性别")
    @ColumnWidth(15)
    private  boolean gender;


    public student() {
    }

    public student(Integer sid, String sname, int age, boolean gender) {
        this.sid = sid;
        this.sname = sname;
        this.age = age;
        this.gender = gender;
    }

    /**
     * 获取
     * @return sid
     */
    public Integer getSid() {
        return sid;
    }

    /**
     * 设置
     * @param sid
     */
    public void setSid(Integer sid) {
        this.sid = sid;
    }

    /**
     * 获取
     * @return sname
     */
    public String getSname() {
        return sname;
    }

    /**
     * 设置
     * @param sname
     */
    public void setSname(String sname) {
        this.sname = sname;
    }

    /**
     * 获取
     * @return age
     */
    public int getAge() {
        return age;
    }

    /**
     * 设置
     * @param age
     */
    public void setAge(int age) {
        this.age = age;
    }

    /**
     * 获取
     * @return gender
     */
    public boolean isGender() {
        return gender;
    }

    /**
     * 设置
     * @param gender
     */
    public void setGender(boolean gender) {
        this.gender = gender;
    }

    public String toString() {
        return "student{sid = " + sid + ", sname = " + sname + ", age = " + age + ", gender = " + gender + "}";
    }
}
